package dq.study.jvm.classloader;

/**
 * 实例变量的顺序
 *
 * @author dongqun
 * @date 2020/9/8 14:29
 */
public class InstantiationSequence {
    private int j = getI();
    private int i = 1;

    public InstantiationSequence() {
        i = 2;
    }

    private int getI() {
        return i;
    }

    public static void main(String[] args) {
        InstantiationSequence ii = new InstantiationSequence();
        System.out.println(ii.j);
    }


}
